<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="format-detection" content="telephone=no" />
    <title>我的钱包</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link rel="stylesheet" href="css/style.css" />
    <link rel="stylesheet" href="css/iconfont.css" />
    <link rel="stylesheet" href="css/element-icons.css" />
    <link rel="stylesheet" href="css/newiconfont.css" />
    <script src="js/jquery.min.js"></script>
    <script src="js/lib.js"></script>
    <script src="js/module.js"></script>
    <!--[if lt IE 9]>
        <script src="https://cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
        <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!--[if IE]>
        <link rel="stylesheet" href="css/all-ie-only.css" />
    <![endif]-->
</head>

<body>
    <div class="header4 fix">
        <div class="wp">
            <div class="header-user">
                <a href="" class="hd">
                    <img src="images/userHead.png" alt="">
                    <span>管理员</span>
                </a>
                <div class="dropdown-menu">
                    <div class="icon-arrow"></div>
                    <ul>
                        <li>
                            <a href="" class="con">
                                <span>首页</span>
                            </a>
                        </li>
                        <li>
                            <a href="" class="con">
                                <span>资料编辑</span>
                            </a>
                        </li>
                        <li>
                            <a href="" class="con">
                                <span>我的钱包</span>
                            </a>
                        </li>
                        <li>
                            <a href="" class="con">
                                <span>退出登录</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <a href="" class="header4-logo">
                <div class="hd">
                    <img src="images/logo3.svg" alt="" />
                    <h2>星火链网 · 骨干节点 <span>（营口）</span></h2>
                </div>
                <p>打造链网协同新基建，建设区块链新经济模式</p>
            </a>
        </div>
    </div>
    <div class="main">
        <div class="box-wallet">
            <div class="wp">
                <div class="tit">
                    <h3>我的钱包</h3>
                </div>
                <div class="items">
                    <div class="items-tit">
                        <h4>我的钱包</h4>
                    </div>
                    <div class="wallet-cont">
                        <div class="bg">
                            <img src="images/wallet2.png" alt="" />
                        </div>
                        <div class="t">
                            <img src="images/wallet.png" alt="" />
                            <h4>钱包余额</h4>
                        </div>
                        <div class="cont">
                            <div class="biffer">
                                <div class="num">11.99</div>Bifer
                            </div>
                            <!-- <div class="it">
                                <p>0 Bifer 抵押中</p>
                            </div> -->
                            <div class="it it2 js_copyInfo">
                                钱包地址：
                                <em></em><i class="el-icon-copy-document"></i><i class="el-icon-copy-document" onclick="copy();"><a href="javascript:void(0);">复制</a></i>
                            </div>
                        </div>
                        <!--<div class="set-bt set-bt_center">
                            <a href="javascript:;" class="primary-btn myfancy" data-href="#pop-zhuanzhang"><span>转账</span></a>
                            <a href="" class="primary-btn"><span>投票</span></a>
                        </div>-->
                    </div>
                </div>
                <div class="items">
                    <div class="items-tit">
                        <h4>交易记录</h4>
                    </div>
                    <div id="wallet_list">
                    </div>
                    <div id="pageable" class="pages">
                        <div id="total" class="pages-total"></div>
                        <div class="dropmenurel01 js-dropmenu" data-modulename="dropmenurel01">
                            <input type="hidden" value="0">
                            <div class="dropmenurel01-tit">
                                <span>10条/页</span>
                                <i class="el-input__icon el-icon-arrow-up"></i>
                            </div>
                            <div class="dropmenurel01-options js-dropmenu-options">
                                <i class="popper__arrow"></i>
                                <ul>
                                    <li data-value="1" onclick="changePageSize(10)">10条/页</li>
                                    <li data-value="2" onclick="changePageSize(20)">20条/页</li>
                                    <li data-value="3" onclick="changePageSize(30)">30条/页</li>
                                    <li data-value="4" onclick="changePageSize(40)">40条/页</li>
                                    <li data-value="5" onclick="changePageSize(50)">50条/页</li>
                                    <li data-value="6" onclick="changePageSize(100)">100条/页</li>
                                </ul>
                            </div>
                        </div>
                        <ul id="pageList"></ul>
                        <div class="pages-go">
                            前往
                            <input type="number" value="1" class="input-inner" id="pageNum"
                                   onChange="changeCurrentPage()"/>
                            页
                            <div class="pages-prev pages-disable"><a href="javascript:;"><i
                                    class="el-icon el-icon-arrow-left"></i></a></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 弹窗 -->
    <!-- 转账 -->
    <div class="m-pop" id="pop-zhuanzhang">
        <div class="win-pop8">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>积分转出</h3>
            </div>
            <div class="yhck-content">
                <div class="yhck-item col-1">
                    <div class="tit"><span>*</span>收款地址</div>
                    <div class="con">
                        <input type="text" class="input-inner" placeholder="请输入转账地址" />
                        <div class="msg">
                            <p>*发送前请务必确认地址信息无误，一经发出，不可撤回！</p>
                        </div>
                    </div>
                </div>
                <div class="yhck-item col-1">
                    <div class="tit"><span>*</span>转账额度</div>
                    <div class="con">
                        <div class="input-biffer">
                            <span>Biffer</span>
                            <input type="text" class="input-inner" placeholder="请输入转账额度" />
                        </div>
                        <div class="msg">
                            <div class="msg-balance">余额:<span>10</span>Biffer<a>全部</a></div>
                        </div>
                    </div>
                </div>
                <div class="yhck-item col-1 form-disabled">
                    <div class="tit">手续费</div>
                    <div class="con">
                        <div class="input-biffer">
                            <span>Biffer</span>
                            <input type="text" class="input-inner" disabled placeholder="" />
                        </div>
                    </div>
                </div>
                <div class="yhck-item col-1">
                    <div class="tit">备注</div>
                    <div class="con">
                        <input type="text" class="input-inner" placeholder="(选填)" />
                    </div>
                </div>
            </div>
            <div class="win-bt2 win-bt_center">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 弹窗 end -->
    <div class="footer4">
        <div class="wp">
            <div class="footer4-copy">
                <p>Copyright © 2016-2022 北京泰尔英福网络科技有限责任公司 京ICP备12003601-6号</p>
            </div>
        </div>
    </div>
    <div class="pop-bg"></div>
    <!-- 合约禁用弹窗 -->
    <div class="m-pop" id="pop-heyuejinyong">
        <div class="win-pop1">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>合约禁用</h3>
            </div>
            <div class="win1-bd">
                <div class="win1-item">
                    <div class="tit">禁用原因<span>*</span></div>
                    <div class="con">
                        <input type="text" class="input-inner" />
                    </div>
                </div>
            </div>
            <div class="win-bt">
                <a href="javascript:;" class="js-btn"><span>取 消</span></a>
                <a href="" class="primary-btn"><span>确 定</span></a>
            </div>
        </div>
    </div>
    <!-- 合约禁用弹窗 end -->
    <!-- 撤销弹窗 -->
    <div class="m-pop" id="pop-chexiaozhengshu">
        <div class="win-pop1">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>撤销</h3>
            </div>
            <div class="win1-bd">
                <div class="win1-item">
                    <div class="tit">撤销原因:</div>
                    <div class="con">
                        <textarea class="textarea-inner" placeholder="请输入撤销原因"></textarea>
                    </div>
                </div>
            </div>
            <div class="win-bt">
                <a href="" class="primary-btn"><span>提交</span></a>
                <a href="javascript:;" class="js-btn"><span>返回</span></a>
            </div>
        </div>
    </div>
    <!-- 撤销弹窗 end -->
    <!-- 禁用弹窗 -->
    <div class="m-pop" id="pop-jinyong">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-info"></div>
                    <div class="desc">
                        <p>您确定要禁用标识吗？</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 禁用弹窗 end -->
    <!-- 启用弹窗 -->
    <div class="m-pop" id="pop-qiyong">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-info"></div>
                    <div class="desc">
                        <p>您确定要启用标识吗？</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 启用弹窗 end -->
    <!-- 下载KeyStore -->
    <div class="m-pop" id="pop-xiazaiKeyStore">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="tit">请输入创建人的私钥</div>
                    <div class="con">
                        <input type="text" class="input-inner" />
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 下载KeyStore end -->
    <!-- 删除 -->
    <div class="m-pop" id="pop-shanchu">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-warning"></div>
                    <div class="desc">
                        <p>此操作将永久删除该数据, 是否继续?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 删除 end -->
    <!-- 删除2 -->
    <div class="m-pop" id="pop-shanchu2">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-info"></div>
                    <div class="desc">
                        <p>确定删除选中角色?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 删除2 end -->
    <!-- 删除3 -->
    <div class="m-pop" id="pop-shanchu3">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <!-- <h3>提示</h3> -->
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-warning"></div>
                    <div class="desc">
                        <p>确定将选择数据删除?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 删除3 end -->
    <!-- 删除4 -->
    <div class="m-pop" id="pop-shanchu4">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <!-- <h3>提示</h3> -->
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-warning"></div>
                    <div class="desc">
                        <p>确定将选择数据删除?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 删除4 end -->
    <!-- 移至黑名单 -->
    <div class="m-pop" id="pop-yizhiheimingdan">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-warning"></div>
                    <div class="desc">
                        <p>确定将该用户移至黑名单吗?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 移至黑名单 end -->
    <!-- 升至管理员 -->
    <div class="m-pop" id="pop-shengzhiguanliyuan">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-warning"></div>
                    <div class="desc">
                        <p>确定将该用户添加至管理员?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 升至管理员 end -->
    <!-- 移除管理员 -->
    <div class="m-pop" id="pop-yichuguanliyuan">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>提示</h3>
            </div>
            <div class="win3-bd">
                <div class="win3-item">
                    <div class="icon_dn el-icon-info"></div>
                    <div class="desc">
                        <p>确定移除该用户管理员?</p>
                    </div>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 移除管理员 end -->
    <!-- 重置密码 -->
    <div class="m-pop" id="pop-chongzhimima">
        <div class="win-pop3">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-icon-close"></i>
                    </a>
                </div>
                <h3>请输入接收密码的邮箱</h3>
            </div>
            <div class="win3-bd">
                <div class="form-1 form-4">
                    <form action="">
                        <div class="form-item col-1">
                            <div class="tit"></div>
                            <div class="con">
                                <input type="text" class="input-inner" placeholder="">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="win-bt2">
                <a href="javascript:;" class="js-btn"><span>取消</span></a>
                <a href="" class="primary-btn"><span>确定</span></a>
            </div>
        </div>
    </div>
    <!-- 重置密码 end -->
    <!-- 钱包解锁弹窗 -->
    <div class="m-pop" id="pop-qianbaojiesuo">
        <div class="win-pop2">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-dialog__close el-icon el-icon-close"></i>
                    </a>
                </div>
                <h3>钱包解锁</h3>
            </div>
            <div class="win1-bd">
                <div class="win2-item">
                    <div class="tit">请选择方式：</div>
                    <div class="con">
                        <ul class="radio-group js-custom-radio-checkbox" data-modulename="formrel01">
                            <li data-selectName=".item-select1">
                                <label>
                                    <input type="radio" name="1" checked />
                                    <i class="icon"></i>
                                    <span>BID keystore 文件</span>
                                </label>
                            </li>
                            <li data-selectName=".item-select2">
                                <label>
                                    <input type="radio" name="1" />
                                    <i class="icon"></i>
                                    <span>BID私钥</span>
                                </label>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="win2-item item-select1">
                    <div class="tit">请选择BID Keystore文件</div>
                    <div class="con">
                        <div class="file-upload_box3">
                            <div class="fileUpload-btn3">
                                <label>
                                    <input type="file" class="js-upload">
                                    <span><i class="icon_dn el-icon-upload e-upload"></i>选择文件</span>
                                </label>
                            </div>
                            <ul class="fileUpload-files">
                                <!-- <li>
                                <a href="javascript:;">
                                    <i class="el-icon-document"></i>
                                    <span>5cd67b13-740e-4f77-b950-09e47e60881d (1).json</span>
                                </a>
                                <i class="el-icon-close"></i>
                            </li> -->
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="win2-item col-1 item-select1">
                    <div class="tit">请输入密码：</div>
                    <div class="con">
                        <div class="input-suffix">
                            <input type="password" class="input-inner" placeholder="请输入密码" />
                            <div class="icon">
                                <i class="el-input__icon i-changetype el-icon-view"></i>
                                <i class="el-input__icon el-icon-circle-close"></i>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="win2-item col-1 item-select2">
                    <div class="tit">请输入BID私钥：</div>
                    <div class="con">
                        <div class="input-suffix">
                            <input type="password" class="input-inner" placeholder="请输入BID私钥" />
                            <div class="icon">
                                <i class="el-input__icon i-changetype el-icon-view"></i>
                                <i class="el-input__icon el-icon-circle-close"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="win-bt win-bt_center">
                <a href="javascript:;" class="js-btn"><span>取 消</span></a>
                <a href="" class="primary-btn"><span>确 定</span></a>
            </div>
        </div>
    </div>
    <!-- 钱包解锁弹窗 end -->
    <!-- 显隐 -->
    <div class="m-pop" id="pop-xianyin">
        <div class="win-pop5">
            <div class="win1-hd">
                <div class="win1-btn">
                    <a href="javascript:;" class="close js-close">
                        <i class="el-dialog__close el-icon el-icon-close"></i>
                    </a>
                </div>
                <h3>多 选</h3>
            </div>
            <div class="win1-bd">
                <ul class="checkbox-group2 js-custom-radio-checkbox" data-modulename="formrel01">
                    <li>
                        <label>
                            <input type="checkbox" name="1" checked />
                            <i class="icon"></i>
                            <span>角色名称</span>
                        </label>
                    </li>
                    <li>
                        <label>
                            <input type="checkbox" name="1" />
                            <i class="icon"></i>
                            <span>所属租户</span>
                        </label>
                    </li>
                    <li>
                        <label>
                            <input type="checkbox" name="1" />
                            <i class="icon"></i>
                            <span>角色别名</span>
                        </label>
                    </li>
                    <li>
                        <label>
                            <input type="checkbox" name="1" />
                            <i class="icon"></i>
                            <span>角色排序</span>
                        </label>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 显隐 end -->
<<<<<<< HEAD
    <script src="./js/common/commonPage.js"></script>
    <script src="js/common/bif.min.js"></script>
=======
    <script src="js/module.js"></script>
    <!--<script src="./js/common/commonPage.js"></script>
    <script src="js/common/bif.min.js"></script>-->
>>>>>>> 32f7e975309c4740d0baae747fd40e81026b436f
    <script>
        var info = {};
        var currentPage = 1;
        var currentSize = 10;
        var num = 0
        //获取个人信息
        function getUserInfo() {
            $request({
                url: '/user-center-oauth/oauthUser/detail',
                method: 'get'
            }, function (res) {
                info = res;
                $('.js_copyInfo em').text(info.bid)
                getData();
            })
        }

        setTimeout(function() {
            getData();
        }, 500);

        function getData(){
            var bid = info.bid;
            var url = "/bmsApi/blade-blockchain/contract/transactionsByBid?sender=" + bid + "&current=1&size=10";
            $request({
                url: url,
                data: {},
                method: 'get'
            }, function (res) {
                console.log(res);
                console.log(res.records);
                renderRecords(res.records);
                if(res.total){
                    $('#pageable').show()
                    $('#total').html("共"+res.total+"条")
                    num =Math.ceil(res.total / currentSize);
                    pageNumInit(num)
                }else{
                    $('#pageable').hide()
                }
            });
        }

        /*var url = '/bmsApi/blade-blockchain/contract/transactionsByBid/?'
        var url_ = JSON.parse(JSON.stringify(url));
        var searchForm = {}
        setTimeout(function() {
            searchForm.sender = info.bid
            $('.js_copyInfo em').text(info.bid)
            $getData(searchForm);
        }, 500);*/
        // 余额
<<<<<<< HEAD
        // var bif = new BIF(JSON.parse(sessionStorage.getItem("vuewebpake")).data.vueAppNodeurl)
        // var num = bif.core.getBalance(info.bid)
        // console.log('nums', num)
        return
=======
        /*var bif = new BIF(JSON.parse(sessionStorage.getItem("vuewebpake")).data.vueAppNodeurl)
        var num = bif.core.getBalance(info.bid)
        console.log('nums', num)*/
>>>>>>> 32f7e975309c4740d0baae747fd40e81026b436f
        //数据处理
        function renderRecords(records) {
            $('#wallet_list').children().remove();
            var template = '';
            for(var i = 0; i < records.length; i++) {
                var item = records[i]
                template += '<div class="record-cont">' +
                    '<div class="t">' +
                        '<div class="set-bt">' +
                            '<a target="_blank" href="/browser/deal/detail.html?hash=' + item.hash + '" class="primary-btn"><span>查看详情</span></a>' +
                        '</div>' +
                        '<img src="/images/record.png" alt="" />' +
                        '<h4>转出</h4>' +
                        '<div class="date">' + item.timestamp + '</div>' +
                    '</div>' +
                    '<div class="table-7">' +
                        '<table>' +
                            '<colgroup>' +
                                '<col width="150">' +
                                '<col width="120">' +
                                '<col width="315">' +
                                '<col width="315">' +
                                '<col width="100">' +
                            '</colgroup>' +
                            '<thead>' +
                                '<tr>' +
                                    '<th>交易总额</th>' +
                                    '<th>交易类型</th>' +
                                    '<th>发送者</th>' +
                                    '<th>接受者</th>' +
                                    '<th>备注</th>' +
                                '</tr>' +
                            '</thead>' +
                            '<tbody>' +
                                '<tr>' +
                                    '<td>' + (item.amount || 0) + ' Bifer</td>' +
                                    '<td>' + (item.type === 0 ? "普通交易" : "合约交易") + '</td>' +
                                    '<td>' +
                                        '<div class="bid">' +
                                            '<a target="_blank" href="/browser/bid/detail.html?bid=' + item.sender + '">' +
                                                '<div class="hd text-oline" style="width: 315px; word-break: break-all;">'+item.sender+'</div>' +
                                                // '<div class="mask">' +
                                                //     '<i class="popper__arrow"></i>' +
                                                //     '<div class="mask-inner">' +
                                                //         '<p>' + item.sender + '</p>' +
                                                //     '</div>' +
                                                // '</div>' +
                                            '</a>' +
                                        '</div>' +
                                    '</td>' +
                                    '<td>' +
                                        '<div class="bid">' +
                                            '<a target="_blank" href="/browser/bid/detail.html?bid=' + item.recipient + '">' +
                                                '<div class="hd text-oline" style="width: 315px; word-break: break-all;">'+item.recipient+'</div>' +
                                                // '<div class="mask">' +
                                                //     '<i class="popper__arrow"></i>' +
                                                //     '<div class="mask-inner">' +
                                                //         '<p>'+item.recipient+'</p>' +
                                                //     '</div>' +
                                                // '</div>' +
                                            '</a>' +
                                        '</div>' +
                                    '</td>' +
                                    '<td><div class="text-oline" style="width: 100px; word-break: break-all;">'+dealDataNew(item.memo)+'</div></td>' +
                                '</tr>' +
                            '</tbody>' +
                        '</table>' +
                    '</div>' +
                '</div>'
            }
            $('#wallet_list').append(template);
        }

        // 分页页码
        function pageNumInit (num) {
            $('#pageList').children().remove();
            if (currentPage === 1 && currentPage !==num) {
                $('#pageList').append(
                    "<li class='pages-prev pages-disable'><a href='javascript:;'><i class='el-icon el-icon-arrow-left'></i></a></li>" +
                    getPageNum(num) +
                    "<li class='pages-next' onclick='changePageSize(" + currentSize + "," + (currentPage + 1) + ",this)'><a href='javascript:;'><i class='el-icon el-icon-arrow-right'></i></a></li>"
                );
            }
            else if (currentPage === num && currentPage !==1) {
                $('#pageList').append(
                    "<li class='pages-prev' onclick='changePageSize(" + currentSize + "," + (currentPage - 1) + ",this)'><a href='javascript:;'><i class='el-icon el-icon-arrow-left'></i></a></li>" +
                    getPageNum(num) +
                    "<li class='pages-next pages-disable'><a href='javascript:;'><i class='el-icon el-icon-arrow-right'></i></a></li>"
                );
            }else if(currentPage===1&&currentPage===num){
                $('#pageList').append(
                    "<li class='pages-prev pages-disable'><a href='javascript:;'><i class='el-icon el-icon-arrow-left'></i></a></li>" +
                    getPageNum(num) +
                    "<li class='pages-next pages-disable'><a href='javascript:;'><i class='el-icon el-icon-arrow-right'></i></a></li>"
                );
            }else {
                $('#pageList').append(
                    "<li class='pages-prev' onclick='changePageSize(" + currentSize + "," + (currentPage - 1) + ",this)'><a href='javascript:;'><i class='el-icon el-icon-arrow-left'></i></a></li>" +
                    getPageNum(num) +
                    "<li class='pages-next' onclick='changePageSize(" + currentSize + "," + (currentPage + 1) + ", this)'><a href='javascript:;'><i class='el-icon el-icon-arrow-right'></i></a></li>"
                );
            }
        }

        // 分页拼接
        function getPageNum (num) {
            var result = '';
            for (var i = 0; i < num; i++) {
                if (i === 0 && num===1) {
                    result += "<li class='pages-active' onclick='changeCurrentPage(1,this)'><a href='javascript:;'>1</a></li>";
                }
                else {
                    result += "<li class='"+(currentPage===i+1?'pages-active':'')+"' onclick='changeCurrentPage("+(i+1)+",this)'><a href='javascript:;'>" + (i + 1) + "</a></li>";
                }
            }
            return result;
        }

        // 改变每页条数
        function changePageSize (size, pageNo, current) {
            var page = pageNo ? pageNo : $('#pageNum').val() ? $('#pageNum').val() : 1;
            currentSize = size ? size : 10;
            currentPage = Number(page);
            getData();
            pageNumInit(num);
        }
        // 改变页码
        function changeCurrentPage(pageNo,e){
            $(e).addClass("pages-active").siblings().removeClass('pages-active')
            currentPage = Number(pageNo);
            getData();
        }

        // 手动跳转到某页
        function jumpPage(){
            var pageNo = $('#pageNum').val() ? $('#pageNum').val() : currentPage
            currentPage = Number(pageNo);
            getData();
        }

        // 改变每页条数
        function changeChildPageSize (size, pageNo, current) {
            var page = pageNo ? pageNo : $('#childPageNum').val() ? $('#childPageNum').val() : 1;
            childCurrentSize = size ? size : 10;
            childCcurrentPage = Number(page);
            getChildList();
            childPageNumInit(childNum);
        }
        // 改变页码
        function changeChildCurrentPage(pageNo,e){
            $(e).addClass("pages-active").siblings().removeClass('pages-active')
            childCurrentPage = Number(pageNo)
            getChildList();
        }
        // 手动跳转到某页
        function jumpChildPage(){
            var pageNo = $('#childPageNum').val() ? $('#childPageNum').val() : childCurrentPage
            childCurrentPage = Number(pageNo);
            getChildList();
        }

        function copy(){
            window.clipboardData.setData('text', info.bid);
            alert('复制成功');
        }

        getUserInfo();
    </script>
</body>

</html>